<?php
namespace api\user\validate;

use think\Validate;

class FeedbackValidate extends Validate
{
    protected $rule = [
	    'feedback_content'               =>  'require|checkContent',
    ];
    protected $message = [
	    'feedback_content.require'       =>  '反馈内容不能为空',
    ];

    // 验证真实姓名 格式
    protected function checkContent($value)
    {
        if (mb_strlen($value,'utf-8')>=10) {
            return true;
        } else {
            return "反馈内容不能少于10个字符";
        }
    }

}